package circle.util;

import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;

public class Util {
	
	private static Clipboard clipboard;
	private static StringSelection selection;
	public static boolean copiarTextoClipBoard(String texto){
		
		try {
			clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
			selection = new StringSelection(texto);	
			clipboard.setContents(selection, null);
			
			return true;
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
	}
}
